/**
 * 
 */
package dms.service;

import java.util.Date;

import dms.model.Building;
import dms.model.Dormitory;
import dms.model.form.Repair;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface RepairQueryService {

	Repair findRepairById(Long id);
	
	PageIterator<Repair> findByBuilding(int start, int count, Date fromDate, Date toDate, 
			Building building, Boolean processed, Boolean applied);
		
	PageIterator<Repair> findByDormitory(int start, int count, Date fromDate, Date toDate,
			Dormitory dormitory, Boolean processed, Boolean applied);
	
	PageIterator<Repair> findByStatus(int start, int count, Date fromDate, Date toDate, Boolean processed, Boolean applied);
	
}
